<!DOCTYPE HTML>
<html>
<head>
    
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
    <meta http-equiv="Cache-Control" content="no-siteapp">
    <!--[if lt IE 9]>
    <script type="text/javascript" src="./Public/Admin/lib/html5.js"></script>
    <script type="text/javascript" src="./Public/Admin/lib/respond.min.js"></script>
    <script type="text/javascript" src="./Public/Admin/lib/PIE_IE678.js"></script>
    <![endif]-->
    <link href="./Public/Admin/css/H-ui.min.css" rel="stylesheet" type="text/css">

    <!--[if IE 6]>
    <script type="text/javascript" src="./Public/Home/lib/DD_belatedPNG_0.0.8a-min.js" ></script>
    <script>DD_belatedPNG.fix('*');</script>
    <![endif]-->
    <title>网站后台管理系统</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <script type="text/javascript" src="./Public/Admin/lib/jquery/1.9.1/jquery.min.js"></script>
    <script type="text/javascript" src="./Public/Admin/lib/layer/1.9.3/layer.js"></script>
	<link rel="stylesheet" href="./Public/Admin/lib/layer/1.9.3/skin/layer.css" id="layui_layer_skinlayercss">
<style>
.wwprint{
	float:left;
}
.wprint{
	float:left;
	display:none;
}
.wl{
	float:right;
}
.wprint span{
	float:left;
}

@media print {
	.noprint {display: none; }
	.wprint{
		display:block;
	}
	.wwprint{
		display:none;
	}
	.table th, .table td{
		padding:6px;
		line-height:10px;
	}
	th,td{
		font-size:12px;
	}
	.print{
		width:auto;
	}
}
</style>
</head>
<body>
<div class="pd-20">
	<div style="float:left;padding-bottom:20px;">
		<button type="button" id="cpicklist" class="btn btn-success btn-sm mt noprint"  onClick="javascript:window.print()" >
			 打印配货单
		</button>
		<!--endprint-->
		<button type="button" id="printems" class="btn btn-success btn-sm mt noprint" >
			 打印面单
		</button>
	</div>
	 <form id="form2" action="{:U('pickcollect')}" name="form2">
	 <!--startprint-->
		<table class="table table-border table-bordered table-hover table-bg">
			<thead>
				<tr>
					<th scope="col" colspan="4"> 拣货单号：	<img width="235.3px" height="59.4px" class="" src="__PUBLIC__/plugins/barcodegen/test_1D.php?text={$picklist_no}"/>
					</th>
				</tr>
				<tr class="text-c">
					<th width="">商品编号</th>
                    <th width="" class="print">商品名称</th>
					<th width="">总数量</th>
					<th width="">库位</th>
				</tr>
			</thead>
			<tbody  id="goodslist">
				<volist name="Pickgoods_list" id="v">
					<tr class="text-c">
						<td class="goods_sn">{$v.goods_no}</td>
						
                        <td class="goods_name">{$v.goods_name}</td>
						
                        <td class="goods_count">{$v.goods_count}</td>
						
						<td>{$v.name}</td>

					</tr>
				</volist>
				<tr class="text-c">
					<td>备注:</td>
					<td colspan='3'>
					<volist name="count_list" id="vo">
						<notempty name="vo.erp_mark_mailno">
							【{$vo.erp_mark_mailno}|{$vo.count}次】
						</notempty>
					</volist>
					</td>
				</tr>
			</tbody>
		</table>
		<volist name="pickorder_list" id="val">
		<!-- <div style="page-break-after: always;"></div>   -->
		<table class="table table-border table-bordered table-hover table-bg noprint" style="margin-top:40px;">
			<thead>
				<tr>
					<th scope="col" colspan="8">
						<span class="wwprint">
							<span>订单编号：{$val['order_no']}</span>
							<!-- &nbsp;&nbsp;&nbsp;&nbsp;{$val['mailNo']} -->
						</span>
						<span class="wprint">
							<span>订单编号：</span>
							<span><img width="175.3px" height="52.4px" class="" src="__PUBLIC__/plugins/barcodegen/test_1D.php?text={$val['order_no']}" alt="barcode"/></span>
						</span>
						
						<span class="wprint wl">
							<span>物流单号：</span>
							<span><img width="175.3px" height="52.4px" class="" src="__PUBLIC__/plugins/barcodegen/test_1D.php?text={$val['mailNo']}" alt="barcode"/></span>
						</span>
					</th>
				</tr>
				<tr class="text-c">
					<th width="40">商品编号</th>
                    <th width="40">商品名称</th>
					<th width="40">数量</th>
					<th width="40">规格</th>
					<!-- <th width="40">申报价格</th> -->
					<th width="40">产销国</th>
					<!-- <th width="40">HSCODE</th> -->
				</tr>
			</thead>
			<tbody  id="goodslist">
				<volist name="val['goods']" id="vo">
					<tr class="text-c">
						<td>{$vo.goods_no}</td>
						<td>{$vo.goods_name}</td>
						<td>{$vo.goods_nums}</td>
						<td>{$vo.spec}</td>
						<!-- <td>{$vo.spec}</td> -->
						<td>{$vo.country_name.country_name}</td>
						<!-- <td>{$vo.hs_code}</td> -->
					</tr>
				</volist>			
			</tbody>
		
		</table>
		</volist>
		<!--endprint-->
		<button type="button" id="cpicklist" class="btn btn-success btn-sm mt noprint"  onClick="javascript:window.print()" >
			 打印配货单
		</button>
		<!--endprint-->
		<button type="button" id="printems" class="btn btn-success btn-sm mt noprint" >
			 打印面单
		</button>
	</form>
</div>

</body>
<script>
	var bagInboundInfoUrl="{:U('Outbound/printorder_green')}";
	$('#printems_sf').click(function(){
		$('input[name=sf]').val(0);
		$('#emsform').submit();
	});
	$('#printems').click(function(){
		var index=layer.open({
            type: 2,
            title: '打印面单',
            shadeClose: true,
            shade: 0.5,
            offset:['180px'],
            area: ['1020px', '335px'],
            content: '__MODULE__/Outbound/printorder_picklist/picklist_id/'+{:I('id')} //iframe的url
        });
		<!-- window.parent.showTab(bagInboundInfoUrl,'调拨单详情'); -->
	})
</script>
</html>